package cn.wolfcode.rabc.mapper;

import cn.wolfcode.rabc.domain.Permission;
import cn.wolfcode.rabc.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {
    void save(Permission permission);

    void delete(Long id);

    void update(Permission permission);

    Permission get(Long id);

    List<Permission> listAll();

    /*int selectForCount(QueryObject qo);*/

    List<Permission> selectForList(QueryObject qo);


    void batchSave(@Param("permissionSet") Set<Permission> permissionSet);


    List<Permission>  queryByRoleId(Long id);

    List<String> queryExpressionsByEmployeeId(@Param("id") Long id);
}